
package com.huifaapp.mall.activity.Homefragment;

import android.annotation.TargetApi;
import android.app.Fragment;

import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.huifaapp.mall.R;
import com.huifaapp.mall.activity.AllOrderActivity;
import com.huifaapp.mall.activity.ComplaintActivity;
import com.huifaapp.mall.activity.DepositActivity;
import com.huifaapp.mall.activity.HelpActivity;
import com.huifaapp.mall.activity.MyCollectActivity;
import com.huifaapp.mall.activity.PersonSetActivity;
import com.huifaapp.mall.activity.RedbagActivity;
import com.huifaapp.mall.activity.ReturnaftersaleActivity;


/**
 * Created by Administrator on 2017-11-27.
 */

@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public class MineFragment extends Fragment{

//     private ImageView ImageSet;
//     private LinearLayout LinearHelpCenter;
//     private LinearLayout LinearMyRedBag;
//    private LinearLayout ll_mine_myCollect;
//     private LinearLayout LinearComplaint;
//     private TextView Immediatecash;
//     private LinearLayout LinearMyOrder;
//    //退货收货
//     private ImageView imagereturnafter;
//    //待付款
//     private ImageView ImaPending;
//    //待发货
//     private ImageView ImaLivery;
//    //待收货
//     private ImageView ImaGoodreceive;
//    //待评论
//     private ImageView ImaPendcomm;
//
//    @Nullable
//    @Override
//    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
//        View viewLayout = inflater.inflate(R.layout.fragment_mine, container, false);
//        initView(viewLayout);
//        return viewLayout;
//    }
//
//    private void initView(View viewLayout) {
//        ImageSet = (ImageView) viewLayout.findViewById(R.id.ImageSet);
//        Immediatecash = (TextView) viewLayout.findViewById(R.id.diatecash);
//        LinearHelpCenter = (LinearLayout) viewLayout.findViewById(R.id.LinearHelp);
//        LinearMyRedBag = (LinearLayout) viewLayout.findViewById(R.id.LinearRedbag);
//        LinearComplaint = (LinearLayout) viewLayout.findViewById(R.id.LinearComplaint);
//        LinearMyOrder = (LinearLayout) viewLayout.findViewById(R.id.myorder);
//        ImaPending = (ImageView) viewLayout.findViewById(R.id.imagepending);
//        ImaLivery = (ImageView) viewLayout.findViewById(R.id.imagedelivery);
//        ImaGoodreceive = (ImageView) viewLayout.findViewById(R.id.imagegoodsrece);
//        ImaPendcomm = (ImageView) viewLayout.findViewById(R.id.imagepedingcomm);
//        imagereturnafter = (ImageView) viewLayout.findViewById(R.id.imagereturnafter);
//        ll_mine_myCollect= (LinearLayout) viewLayout.findViewById(R.id.ll_mine_myCollect);
//        ImageSet.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent intent = new Intent(getActivity(),PersonSetActivity.class);
//                startActivity(intent);
//            }
//        });
//        Immediatecash.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent intent = new Intent(getActivity(),DepositActivity.class);
//                startActivity(intent);
//            }
//        });
//        LinearHelpCenter.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent intent = new Intent(getActivity(),HelpActivity.class);
//                startActivity(intent);
//            }
//        });
//        LinearMyRedBag.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent intent = new Intent(getActivity(),RedbagActivity.class);
//                startActivity(intent);
//            }
//        });
//        LinearComplaint.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent intent = new Intent(getActivity(),ComplaintActivity.class);
//                startActivity(intent);
//            }
//        });
//        LinearMyOrder.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent intent = new Intent(getActivity(),AllOrderActivity.class);
//                startActivity(intent);
//            }
//        });
//        ImaPending.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent intent = new Intent(getActivity(),AllOrderActivity.class);
//                intent.putExtra("roomid",1);
//                startActivity(intent);
//            }
//        });
//        ImaLivery.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent intent = new Intent(getActivity(),AllOrderActivity.class);
//                intent.putExtra("roomid",2);
//                startActivity(intent);
//
//            }
//        });
//        ImaGoodreceive.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent intent = new Intent(getActivity(),AllOrderActivity.class);
//                intent.putExtra("roomid",3);
//                startActivity(intent);
//
//            }
//        });
//        ImaPendcomm.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent intent = new Intent(getActivity(),AllOrderActivity.class);
//                intent.putExtra("roomid",4);
//                startActivity(intent);
//
//            }
//        });
//        imagereturnafter.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Intent intent = new Intent(getActivity(),ReturnaftersaleActivity.class);
//                startActivity(intent);
//            }
//        });
//
//
//        ll_mine_myCollect.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                Intent intent=new Intent(getActivity(),MyCollectActivity.class);
//                startActivity(intent);
//            }
//        });
//    }



}

